package com.soilflow.common.enums;

import java.math.BigDecimal;

/**
 * 手续费
 * 
 * @author soilflow
 */
public enum BetRate
{
   //* 大小单双，中了➕1.8没中扣1，中了回本不加不减
    DA("大", new BigDecimal(2.8)),
    DAHUI("大回", new BigDecimal(1)),

    XIAO("小", new BigDecimal(2.8)),
    XIAOHUI("小回", new BigDecimal(1)),

    DAN("单", new BigDecimal(2.8)),
    DANHUI("单回", new BigDecimal(1)),

    SHUANG("双", new BigDecimal(2.8)),
    SHUANGHUI("双回", new BigDecimal(1)),

    // 中了回本就是只扣手续费
    DADAN("大单", new BigDecimal(-4)),
    DADANHUI("大单回", new BigDecimal(1)),

    DASHUANG("大双", new BigDecimal(-4)),
    DASHUANGHUI("大双回", new BigDecimal(1)),

    XIAODAN("小单", new BigDecimal(-4)),
    XIAODANHUI("小单回", new BigDecimal(0.7)),

    XIAOSHUANG("小双", new BigDecimal(-4)),
    XIAOSHUANGHUI("小双回", new BigDecimal(0.7)),

    // 100元买倍数，中了返200元，扣手费，不中则，返奖20元并扣除手续费
    BEISHU("倍数",  new BigDecimal(2));

    private final String code;
    private final BigDecimal rate;

    BetRate(String code, BigDecimal rate)
    {
        this.code = code;
        this.rate = rate;
    }

    public String getCode()
    {
        return code;
    }

    public BigDecimal getRate()
    {
        return rate;
    }
}
